<template>
  <div class="gm-app-search-footer">
    <AppSearchKeyItem class="gm-app-search-footer-item" icon="enter" />
    <span>{{ t('component.app.toSearch') }}</span>
    <AppSearchKeyItem class="gm-app-search-footer-item" icon="arrow-up-outline" />
    <AppSearchKeyItem class="gm-app-search-footer-item" icon="arrow-down-outline" />
    <span>{{ t('component.app.toNavigate') }}</span>
    <AppSearchKeyItem class="gm-app-search-footer-item" icon="keyboard-esc" />
    <span>{{ t('common.closeText') }}</span>
  </div>
</template>

<script lang="ts" setup>
import { useI18n } from '@/hooks/web/useI18n';
import AppSearchKeyItem from './AppSearchKeyItem.vue';

const { t } = useI18n();

</script>
<style lang="scss" scoped>
.gm-app-search-footer {
  position: relative;
  display: flex;
  height: 44px;
  padding: 0 16px;
  font-size: 12px;
  color: #666;
  background-color: #fff;
  border-top: 1px solid #d9d9d9;
  border-radius: 0 0 16px 16px;
  align-items: center;
  flex-shrink: 0;
  .gm-app-search-footer-item {
    display: flex;
    width: 20px;
    height: 18px;
    padding-bottom: 2px;
    margin-right: 0.4em;
    background-color: linear-gradient(-225deg, #d5dbe4, #f8f8f8);
    border-radius: 2px;
    box-shadow: inset 0 -2px 0 0 #cdcde6, inset 0 0 1px 1px #fff,
      0 1px 2px 1px rgb(30 35 90 / 40%);
    align-items: center;
    justify-content: center;
  }
  span + .gm-app-search-footer-item {
    margin-left: 14px;
  }

  .gm-app-search-footer-item:last-of-type {
    font-size: 16px;
  }
}
</style>
